Instructions for replication.

Figures are saved to the "figures" directory, tables to the "tables" directory.

Required R packages: dplyr; ggplot2; ggpubr; rdpower; rdrobust; magrittr;
ggthemes; gridExtra; ordinal; tibble; texreg; rdd; grid; plyr; utils; broom;
purrr; tidyr; stringr; readr; readstata13; rlang

main.R replicates all figures and tables. The working directory needs to be set
to the top-level directory of the replication files. For example, navigate to
the replication directory, open a terminal and type: Rscript main.R

# Description of the steps in main.R
Step 1) loads all necessary R scripts and prepares data
Step 2) reproduces Figure 3 and Figure S-A1
Step 3) reproduces Figure 2
Step 4) reproduces Table 1, Figure 5, Figure S-D1, Table S-C1, Table S-C2, Table S-C3
Step 5) reproduces Figure 4
Step 6) reproduces Table S-B1, Table S-B2, Table S-B3